using System.Collections.Generic;
using Tiwo.Elements;

namespace Tiwo
{
    public class Scheme
    {
        private readonly List<FlowPoint> points = new List<FlowPoint>();

        public void AddInput(FlowPoint point)
        {
            points.Add(point);

            if (point.FriendlyName == null)
            {
                point.FriendlyName = GenerateFriendlyName("input");
            }
        }

        private string GenerateFriendlyName(string prefix)
        {
            return prefix + points.Count;
        }
    }
}